<template>
	<view>
		<catalogue></catalogue>
		<image class="bg-img w-100" :src="`${cosUrl}/bg/banner_solution_50.png`"></image>
		<bread :textArr="textArr" :cls="['text-c303133', 'bg-cD3D3D3']"></bread>
		<view class="u-content">
			<u-parse :content="content" v-if="content"></u-parse>
		</view>
		<!-- #ifndef H5 -->
		<view style="height: 110rpx;"></view>
		<!-- #endif -->
	</view>
</template>
<script>
	import {
		http_solutiondetail,
	} from '@/common/api.js';
	export default {
		data() {
			return {
				name: '',
				content: '',
				textArr:['首页', '行业解决方案']
			}
		},
		onLoad(options) {
			let id = options.id
			http_solutiondetail({params: {id: id}})
				.then((res) => {
					console.log(res);
					if (1 == res.code) {
						this.name = res.data.name
						this.content = res.data.maincontent
						this.textArr.push(res.data.name)
						
						this.shareTitle = res.data.name
						this.shareDesc = res.data.summary
						this.share5v4Image = res.data.cover5v4image
						this.share1v1Image = res.data.cover1v1image
						
						// #ifdef H5
						this.share()
						// #endif
					}
				})
		},

		methods: {

		}
	}
</script>

<style scoped>
	.bg-img {
		height: 272rpx;
		vertical-align: middle;
	}
</style>
